package com.megvii.koala.base;

import com.megvii.corelib.base.MegviiPresenter;
import com.megvii.corelib.base.PresenterHolder;

/**
 * Created by linyue on 15/12/23.
 * <p/>
 * Presenter的基类<br/>
 * 基类功能如下：<br/>
 * 1、接受Volley的错误回调，并且用Toast提示错误信息
 * 2、如果barHolder不为null，就隐藏progress bar
 */
public class KoalaPresenter<VIEW extends PresenterHolder> extends MegviiPresenter<VIEW>
{
    public KoalaPresenter()
    {
        super();
    }

    @Override
    protected void onCreated()
    {
        //empty implementation
    }

    @Override
    protected void onResume()
    {
        //empty implementation
    }

    @Override
    protected void onPause()
    {
        //empty implementation
    }

    @Override
    public void onClickRefreshNetwork()
    {
        viewHolder.hideNetworkError();
    }
}
